package net.xujialiang.XTestRPA.Repository.Tenant;

import net.xujialiang.XTestRPA.Entity.Tenant.XRPATenant;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;


public interface TenantRepository extends CrudRepository<XRPATenant, Integer> {
    Optional<XRPATenant> findByTtc(String ttc);
    Page<XRPATenant> findAll(Pageable page);
    Page<XRPATenant> findByTtcOrAdmin(String ttc, String admin, Pageable page);
}
